package com.example.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 测试实体类
 *
 * @author: liu
 * 2022-03-30-14:06
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyTestEntity {

    @ExcelIgnore
    private String id;

    @ColumnWidth(20)
    @ExcelProperty("员工姓名")
    private String name;

    @ColumnWidth(20)
    @ExcelProperty("员工年龄")
    private Integer age;
}
